package com.isoft.c2team3service2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.isoft.c2team3service2.entity.UserLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 蓝莓
 * @date 2025/10/10 11:15
 */
@Mapper
public interface UserLikeMapper extends BaseMapper<UserLike> {

    @Select("select user_id from user_like where user_id = #{userid} and post_id = #{postid}")
    boolean isLike(Integer userid, Integer postid);

}
